package com.mvity.framework.system.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mvity.framework.common.base.BaseController;
import com.mvity.framework.common.global.ExtJSGridResponse;
import com.mvity.framework.common.global.ExtJSResponse;
import com.mvity.framework.common.global.IResponseOutput;

/**
 * 用户管理控制器
 * 
 * @ClassName UserController
 * @Description
 * @author 栗相楠
 * @date 2012-5-10 上午10:19:19
 * 
 */
@Controller
@RequestMapping(value = "/user")
public class UserController extends BaseController {

	private static final long serialVersionUID = -4181463959104876345L;

	/**
	 * 保存用户信息
	 * 
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/save")
	@ResponseBody
	public IResponseOutput save(HttpServletRequest request) {

		return new ExtJSResponse(true, "0");
	}

	/**
	 * 加载用户列表
	 * 
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/list")
	@ResponseBody
	public IResponseOutput list(HttpServletRequest request) {
		
		return ExtJSGridResponse.emptyDataResponse;
	}

}
